<?php

namespace app\service;

use app\stateData;

class Business
{

    //业务数据按大业务分类归类
    public function getBusClassify($data): array
    {
        $result = [];
        foreach ($data as $datum) {

            if (isset($result[$datum['business_type']])){
                $result[$datum['business_type']][] = $datum;
            }else{
                $result[$datum['business_type']][] = $datum;
            }
        }

        return $result;
    }
}